package c.c.a;

import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.os.IInterface;
import c.c.a.k1.b;

public final class j1 extends q0<y0> {

    public class a implements b<y0, String> {
        public a(j1 j1Var) {
        }

        public Object a(IBinder iBinder) {
            int i = c.c.a.y0.a.a;
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.samsung.android.deviceidservice.IDeviceIdService");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof y0)) {
                return new c.c.a.y0.a.a(iBinder);
            }
            return (y0) queryLocalInterface;
        }

        public Object a(Object obj) {
            return ((y0) obj).a();
        }
    }

    public j1() {
        super("com.samsung.android.deviceidservice");
    }

    public b<y0, String> a() {
        return new a(this);
    }

    public Intent c(Context context) {
        Intent intent = new Intent();
        intent.setClassName("com.samsung.android.deviceidservice", "com.samsung.android.deviceidservice.DeviceIdService");
        return intent;
    }
}
